<?php

namespace App\Http\Models\Permissions;

use Illuminate\Database\Eloquent\Model;

class Permissions extends Model
{
    protected $table = "permissions";

    /**
     * 新增展示的字段
     * @var array
     */
    protected $fillable = [
        'id',
        'pid',
        'icon',
        'urls',
        'params',
        'permissions_name',
        'permissions_explain',
        'is_menus',
        'method',
        'created_at',
        'updated_at'
    ];

    /**
     * 查询显示该字段
     * @var array
     */
    protected $hidden = [
//        'permissions_name',
//        'permissions_explain',
        'created_at',
        'updated_at'
    ];
}
